#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n,a[100005];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(ll i=1;i<=n;i++){
        cin>>a[i];
    }
    ll nl=n;
    sort(a+1,a+n+1);
    for(ll i=1;i<=n;i++){
        for(ll j=1;j<i;j++){
            if(a[i]>a[j]&&a[j]!=0){
                a[j]=0;
                nl--;
                break;
            }
        }
    }
    cout<<nl;
    return 0;
}
